{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <h1>{$title}</h1>
        <form action="{:url('admin/user/change')}" method="post">
            <input type="hidden" name="u_id" value="{$id}">
            {volist name="roles" key="k" id="v" }

            <input type="checkbox" name="role[]" value="{$v['id']}"
                       {if condition = "$v['checked']"}
                       checked='checked'
                       {/if}
            >{$v['rolename']}
            {/volist}

            <br>
            <input type="submit">
        </form>
    </div>
</div>

{/block}